package com.atguigu.yygh.hosp.repository;

import com.atguigu.yygh.model.hosp.Hospital;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface HospitalRepository extends MongoRepository<Hospital,String> {

    //此方法不需要实现，只要符合mongodb函数命名规范，系统会自动生成对应数据操作语句
    Hospital getHospitalByHoscode(String hoscode);
}
